package com.loster.login.strategy;

import com.loster.login.model.LoginReq;
import com.loster.login.model.LoginResp;
import org.springframework.stereotype.Component;

/**
 * 短信验证码登录
 */
@Component
public class SmsGranter implements UserGranter{
    @Override
    public LoginResp login(LoginReq loginReq) {
        // .....短信验证码登录逻辑
        System.out.println("策略: 短信验证码登录");
        return new LoginResp().success("策略: 短信验证码登录",loginReq);
    }
}
